﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Import_cpdb_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

        }
        
    }

    public int GetPage()
    {
        return AspNetPager1.CurrentPageIndex;
    }

    private void bd(int page)
    {
        CMSModel.CMSEntities dal = DAL.DBManager.GetCmsEmtity();
         Repeater1.DataSource=  dal.SecuritiesInformation.OrderByDescending(x => x.SecuritiesCode).Skip((page - 1) * AspNetPager1.PageSize).Take(AspNetPager1.PageSize);
         Repeater1.DataBind();
    }
}